package com.achao.backstagemanage.utils;

import com.achao.basecommon.constants.RedisCacheConstants;
import org.apache.commons.lang3.StringUtils;

/**
 * 描述：后台服务管理-工具类
 *
 * @Author：yangchao
 * @CreateDate：2023/2/4 23:31
 */
public class BackstageManageUtils {

    //创建组装缓存路径
    public static String getCacheFilePath(String model,String key){
        return StringUtils.join(
                RedisCacheConstants.REDIS_CACHE,
                RedisCacheConstants.NAME_SPACE,
                RedisCacheConstants.BAKCKSTAGEMANAGE,
                RedisCacheConstants.NAME_SPACE,
                model,
                RedisCacheConstants.NAME_SPACE,
                key
        );
    }
}
